package com.xuecheng.content.agent.sentinel;

import com.xuecheng.api.media.model.dto.MediaDTO;
import com.xuecheng.common.domain.code.CommonErrorCode;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.content.agent.MediaApiAgent;
import org.springframework.stereotype.Component;

@Component
public class MediaApiAgentFallBack implements MediaApiAgent {


    @Override
    public RestResponse<MediaDTO> getMediaById4s(Long mediaId) {
        RestResponse response = RestResponse.validfail(CommonErrorCode.E_999981);

        return response;
    }
}